package com.example.course.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 课程评论数据传输对象
 *
 * @author Jasmine-drs
 * @date 2025-04-22
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "CommentDTO", description = "课程评论数据传输对象")
public class CommentDTO {

	@ApiModelProperty("主键")
	private Integer id;

	@NotNull(message = "[学生id]不能为空")
	@ApiModelProperty("评论的学生id")
	private Integer studentId;

	@NotNull(message = "[课程id]不能为空")
	@ApiModelProperty("课程id")
	private Integer courseId;

	@NotBlank(message = "[评论内容]不能为空")
	@ApiModelProperty("评论的内容")
	private String content;
} 